.HistoryData {
  width: 100%;
  height: 100%;
}

.hisTable {
  :global {
    .ant-form {
      padding-top: 0;
    }
  }
}
.noTableTitle {
  .ant-pro-card-body {
    padding-right: 0;
    padding-left: 0;
  }
}

.history-left-spin {
  position: relative;
  flex: 0 0 325px;
  width: 325px;
  min-height: 656px;
  background: #fff;

  .ant-spin-nested-loading {
    height: 100%;
  }
  .ant-spin-container {
    height: 100%;
  }
}

// htn: history tree node
.htn-badge {
  width: fit-content;
  height: fit-content;
  margin: 0;
  padding: 3px 4px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  border-radius: 2px;

  &-soc {
    display: flex;
    align-items: center;
    justify-content: end;
    min-width: 40px;
    height: 18px;
    padding: 0;
    padding-right: 12px;
    padding-left: 4px;
    text-align: center;
    background-image: url('@/assets/img/ico_soc_history@2x.png');
    background-repeat: no-repeat; /* 不重复 */
    background-size: 100% 100%; /* 不重复拉伸填充 */
  }

  &-online {
    background: #1b6dfe;
  }
  &-offline,
  &-stop {
    background: #999999;
  }

  &-charge {
    background: #56d433;
  }
  &-discharge {
    background: #1b6dfe;
  }

  &-fault {
    background: #ff5251;
  }
}

.ant-pro-query-filter-collapse-button {
  white-space: nowrap;
}
